package com.chanricle.mixtoolset.connection;

import java.util.Map;

/**
 * MixToolset HTTP connection interface
 * @author Chanricle King
 * @date Spring 2013
 */
public interface MixToolsetConnector {
	/**
	 * GET method HTTP request
	 * @param httpUrl HTTP request url
	 * @return Server response character string
	 */
	public String GET(String httpUrl);
	
	/**
	 * GET method HTTP request addition parameters
	 * @param httpUrl HTTP request url
	 * @param params Request parameters
	 * @return Server response character string
	 */
	public String GET(String httpUrl, Map<String, String> params);
	
	/**
	 * POST method HTTP request
	 * @param httpUrl HTTP request url
	 * @return Server response character string
	 */
	public String POST(String httpUrl);
	
	/**
	 * POST method HTTP request addition parameters
	 * @param httpUrl HTTP request url
	 * @param params Request parameters
	 * @return Server response character string
	 */
	public String POST(String httpUrl, Map<String, String> params);
}
